import Axios from 'axios'

const axios = Axios.create({
  baseURL: 'http://liufusong.top:8080',
  timeout: 20000
})

export default ({ url, method = 'GET', params, data, header }) => {
  return axios({
    url,
    method,
    data,
    header,
    params
  })
}
